import { ApiProperty } from '@nestjs/swagger';
import { IsBoolean, IsNotEmpty, IsString } from 'class-validator';
export class UpdateProductDto {
	@ApiProperty()
	@IsNotEmpty()
	@IsString()
	name: string;

	@ApiProperty()
	@IsString()
	route: string;

	@ApiProperty()
	@IsNotEmpty()
	@IsString()
	pic: string;

	@ApiProperty()
	@IsNotEmpty()
	@IsString()
	category: string;

	@ApiProperty()
	intro: string;

	@ApiProperty()
	content: string;

	@ApiProperty()
	recommend: boolean;

	@ApiProperty()
	@IsBoolean()
	status: boolean;

	@ApiProperty()
	updatedAt: Date;
}
